Part Number Hot Search : 
CX50101 10150 TTINY ST72T 1N5387B HT49R50 10200CT SG317AT
Product Description
Full Text Search
 

To Download LTC6813-1 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 description lt c6812-1/lt c6813-1 daisy chain isospi battery-stack monitor demonstration circuit 2350a is a multicell battery stack monitor featuring the ltc ? 6812-1, a 15-cell monitor on the dc2350 a-a, or the LTC6813-1, an 18-cell monitor on the dc2350 a-b. multiple boards can be linked through a 2- wire isolated serial interface (isospi) to monitor any number of cells in a stack. the demo circuit also features reversible isospi enabling a fully redundant communica - tion path. all registered trademarks and trademarks are the property of their respective owners. performance summary the dc2350 can communicate to a pc by connecting directly to a dc2026 linduino ? one. the dc2026 must be loaded with the appropriate program (called a sketch) to control the battery stack monitor ic and receive data through a usb serial port. the dc2792/dc1941 can be connected to the dc2026 to provide a fully isolated isospi interface to the dc2350. design files for this circuit board are available at http://www.linear.com/demo/dc2350a specifications are at t a = 25c dc2350a parameter dc2350a-a dc2350a-b units min typ max min typ max v + supply voltage 16 50 75 16 60 90 v v + to c15 voltage C0.3 v v + to c10 voltage 40 v c11 voltage 2.5 v c6 voltage 1 v v + to c18 voltage C0.3 v v + to c12 voltage 40 v c13 voltage 2.5 v c7 voltage 1 v v reg supply voltage 4.5 5 5.5 4.5 5 5.5 v v ref1 1st reference voltage, no load 3.0 3.15 3.3 3.0 3.15 3.3 v v ref2 2nd reference voltage, 5k load to v C 2.993 3 3.007 2.993 3 3.007 v v bias ibias voltage, ready/active state 1.9 2.0 2.1 1.9 2.0 2.1 v c pin input range 0 5 0 5 v cell count 15 18 dc2350af demo manual dc2350a
2 hardware setup wiring j4 connector the dc2350 a-a and dc2350 a-b demo circuits (boards) have different connector pinouts. it is critical that the cor - rect wiring is followed or there is a risk of damaging the demo board. when connected to a battery stack, power for the dc2350 is provided by the cell group being monitored. to connect the cell group, separate the screw-terminal block section from the j4 connector. then, insert the cell-voltage con - nections or resistors into the screw-terminal clamping contacts. these connections provide the power and input stimulus for the battery stack monitor ic. cell-voltages are wired to j4 starting from position 1 (most negative potential of the group). please refer - ence the appropriate demo board j4 connector pinout in tables?1 and?2. alternatively, resistors can be used to simulate battery cell-voltages. 100 0.5w or equivalent resistors are rec - ommended because 100 (or lower values) typically will not induce measurement errors and the 0.5w (or greater rating) will keep the resistor temperatures low preventing power dissipation damage. dc2350a-a 15 resistor connection carefully connect fifteen 100 resistors onto the screw- terminal block between each c pin input clamping contact and skip the nc (no connect) contacts from position 1 to position 18 as shown in table 1, dc2350a-a j4 pinout. provide a stack-equivalent power supply connection to position 18 (positive) and position 1 (negative). the power supply may be adjusted to provide the desired nominal cell-voltage (e.g. 49.5v will be 3.3v per cell). dc2350a-b 18 resistor connection carefully connect eighteen 100 resistors between each screw-terminal block clamping contact from position 1 to position 19 as shown in table?2, dc2350a-b j4 pinout. provide a stack-equivalent power supply connection to position 19 (positive) and position 1 (negative). the power supply may be adjusted to provide the desired nominal cell-voltage (e.g. 59.4v will be 3.3v per cell). table?1. dc2350a-a j4 pinout j4 pin c pin input 1 c0/v C 2 c1 3 c2 4 c3 5 c4 6 c5 7 nc 8 c6 9 c7 10 c8 11 c9 12 c10 13 nc 14 c11 15 c12 16 c13 17 c14 18 c15 19 nc table?2. dc2350a-b j4 pinout j4 pin c pin input 1 c0/v C 2 c1 3 c2 4 c3 5 c4 6 c5 7 c6 8 c7 9 c8 10 c9 11 c10 12 c11 13 c12 14 c13 15 c14 16 c15 17 c16 18 c17 19 c18 dc2350af demo manual dc2350a
3 jumpers dc2350 serial interface options using other spi master boards the demo board jumpers must be set to match the desired mode of operation. the jumpers enable the discharge timer and select the serial communication mode to the battery stack monitor ic. isomd jumpers jp1Cjp3 0: set jumpers to 0 for standard spi communication to the ic through the j3 connector. the dc2350 has several communication options. the dc2026 linduino one provides a usb-to-spi interface, and is ideal to interface from a pc to any spi device. in this case, the dc2026 spi interface can connect directly to the dc2350 (see section entitled dc2026 to dc2350 spi connection for details). alternately, the dc2026 spi when a different spi master microcontroller board is used instead of the dc2026 , more components or equipment are required to properly interface to the demo boards. here are the requirements: spi miso line most spi master microcontroller boards will not have a spi miso line pull-up. a 5k pull-up resistor is required on the spi miso line because the battery stack monitor ic sdo is an open drain nmos output pin. otherwise, the spi miso line will be floating where the spi readback of each byte will typically appear as no response or all ones or 0x ffs. there are several places where the pull-up 1: set jumpers to 1 for isospi communication to the ic through either the j1 or j2 connector. swten jumper jp4 0: set jumpers to 0 for discharge timer disable. 1: set jumpers to 1 for discharge timer enable. can be translated to isospi via the dc2792 or dc1941 demo boards. the dc2792 is a dual master isospi demo board which can be connected as a typical single-ended isospi bus master or to both ends of a reversible con - figuration with two isospi bus masters. the dc1941 can be connected as a typical single-ended isospi bus master. resistor can be installed. on the dc2350 , a 0603 size 5k resistor can be soldered onto r8 or on the microcontroller board, a 5k resistor can be added between the micro - controller spi miso line and the microcontroller vcc pin. isospi ic power a separate 5v power supply is required when using a different spi master microcontroller board. the dc2026 j1 header provides power for the isospi ic through the 14-pin ribbon cable into the dc2792 j1 header or the dc1941 j2 header. refer to demo manual dc2792a or demo manual dc1941 d for external power supply instructions. dc2350af demo manual dc2350a
4 dc2026 to dc2350 spi connection an spi connection begins with the spi master con - nected to the first (or bottom ) dc2350 . additional dc2350 boards can be daisy-chained onto the isospi bus. communication begins from the first (or bottom) dc2350 then to the next upper dc2350 then finally to the last (or top) dc2350. figure 1 shows the following connections for two boards on a stack interfaced to a pc: 1. connect a usb cable from the pc usb port to the dc2026 j5 connector. 2. connect the dc2026 to the dc2350 in spi mode. this dc2350 is the first (or bottom) board of the stack. a. connect a 14- pin ribbon cable from the dc2026 j1 header to the bottom dc2350 j3 header. b. set jp1Cjp3 to 0 for spi communication. c. jp4 can be 0 or 1 depending if the discharge timer function is being used. 3. connect or daisy-chain the dc2350 to another dc2350 in isospi mode. this dc2350 is the last (or top) board of a two-board stack. more dc2350 upper boards can be daisy-chained together in the same manner. a. connect a r j45 patch cable from the bot - tom dc2350 j1 isospi?b rj45 connector to the next upper or top dc2350 j2 isospi?a rj45 connector. b. set the next upper or top dc2350 jp1Cjp3 to 1 for isospi communication. 4. caution! prevent damage to the dc2350. refer to tables?1 and 2 and confirm that the cell-voltage con - nections to screw-terminal block matches the j4 pinout of the dc2350 version being used. a. plug the screw-terminal blocks into the j4 cell- voltage connectors. 5. refer to the software setup section of this demo manual to properly setup the pc with the arduino ide software to allow communication to the dc2350 boards. figure 1. dc2026 spi connection to the bottom dc2350 in a two-board dc2350 stack dc2026 usb j1 j5 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 2350a f01 dc2350af demo manual dc2350a
5 dc2792 to dc2350 typical isospi connection a typical isospi connection begins with the isospi master connected to the first (or bottom) dc2350. additional dc2350 boards can be daisy-chained onto the isospi bus. communication begins from the first (or bottom) dc2350 then to the next upper dc2350 then finally to the last (or top) dc2350. figure 2 shows the following connections for two boards on a stack interfaced to a pc: 1. connect a usb cable from the pc usb port to the dc2026 j5 connector. 2. connect the dc2026 to the dc2792 dual master isospi demo board. a. connect a 14- pin ribbon cable from the dc2026 j1 header to the dc2792 j1 header. 3. connect the dc2792 to the dc2350 in isospi mode. this dc2350 is the first (or bottom) board of the stack. a. connect a r j45 patch cable from the dc2792 j2 main rj45 connector to the bottom dc2350 j2 isospi?a rj45 connector. b. set the bottom dc2350 jp1Cjp3 to 1 for isospi communication. c. jp4 can be 0 or 1 depending if the discharge timer function is being used. 4. connect or daisy-chain the dc2350 to another dc2350 in isospi mode. this dc2350 is the last (or top) board of a two-board stack. more dc2350 upper boards can be daisy-chained together in the same manner. a. connect a r j45 patch cable from the bot - tom dc2350 j1 isospi?b rj45 connector to the next upper or top dc2350 j2 isospi?a rj45 connector. b. set the next upper or top dc2350 jp1Cjp3 to 1 for isospi communication. 5. caution! prevent damage to the dc2350. refer to tables?1 and 2 and confirm that the cell-voltage con - nections to screw-terminal block matches the j4 pinout of the dc2350 version being used. a. plug the screw-terminal blocks into the j4 cell- voltage connectors. 6. refer to the software setup section of this demo manual to properly setup the pc with the arduino ide software to allow communication to the dc2350 boards. figure 2. dc2792 typical isospi connection to the bottom dc2350 in a two-board dc2350 stack dc2026 usb j1 j5 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 main j2 dc2792 aux j3 j1 2350a f02 dc2350af demo manual dc2350a
6 dc2792 to dc2350 reverse isospi connection a reverse isospi connection begins with the isospi mas - ter connected to the last (or top) dc2350. additional dc2350 boards can be daisy-chained onto the isospi bus. communication begins from the last (or top) dc2350 then to the next lower dc2350 then finally to the first (or bottom) dc2350. figure 3 shows the following connections for two boards on a stack interfaced to a pc: 1. connect a usb cable from the pc usb port to the dc2026 j5 connector. 2. connect the dc2026 to the dc2792 dual master isospi demo board. a. connect a 14-pin ribbon cable from the dc2026 j1 header to the dc2792 j1 header. 3. connect the dc2792 to the dc2350 in isospi mode. this dc2350 is the last (or top ) board of a two-board?stack. a. connect a r j45 patch cable from the dc2792 j2 main rj45 connector to the top dc2350 j1 iso- spi?b rj45 connector. b. set the top dc2350 jp1C jp3 to 1 for isospi communication. c. jp4 can be 0 or 1 depending if the discharge timer function is being used. 4. connect or daisy-chain the dc2350 to another dc2350 in isospi mode. this dc2350 is the first (or bottom) board of a two-board stack. more dc2350 lower boards can be daisy-chained together in the same manner. a. connect a r j45 patch cable from the top dc2350 j2 isospi?a rj45 connector to the next lower or bottom dc2350 j1 isospi?b rj45 connector. b. set the next lower or bottom dc2350 jp1Cjp3 to 1 for isospi communication. 5. caution! prevent damage to the dc2350. refer to tables?1 and 2 and confirm that the cell-voltage con - nections to screw-terminal block matches the j4 pinout of the dc2350 version being used. a. plug the screw-terminal blocks into the j4 cell- voltage connectors. 6. refer to the software setup section of this demo manual to properly setup the pc with the arduino ide software to allow communication to the dc2350?boards. figure 3. dc2792 reverse isospi connection to the top dc2350 in a two-board dc2350 stack dc2026 usb j1 j5 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 main j2 dc2792 aux j3 j1 2350a f03 dc2350af demo manual dc2350a
7 dc2792 to dc2350 redundant isospi connection a redundant isospi connection begins with the primary (or main ) isospi master connected to the first (or bottom) dc2350 and has a backup auxiliary (or aux) isospi master connected to the last (or top) dc2350. additional dc2350 boards can be daisy-chained between the two isospi masters on the isospi bus. primary (or main ) communication begins from the first (or bot - tom ) dc2350 then to the next upper dc2350 then finally to the last (or top) dc2350 . the backup auxiliary (or aux ) communication begins in the reverse direction to provide coverage when a possible isospi daisy-chain break occurs. figure 4 shows the following connections for two boards on a stack interfaced to a pc: 1. connect a usb cable from the pc usb port to the dc2026 j5 connector. 2. connect the dc2026 to the dc2792 dual master isospi demo board. a. connect a 14- pin ribbon cable from the dc2026 j1 header to the dc2792 j1 header. 3. connect the dc2792 primary (or main ) isospi master to the first (or bottom) dc2350 board of the stack. a. connect a r j45 patch cable from the dc2792 j2 main rj45 connector to the bottom dc2350 j2 isospi?a rj45 connector. b. set the bottom dc2350 jp1Cjp3 to 1 for isospi communication. c. jp4 can be 0 or 1 depending if the discharge timer function is being used. 4. connect or daisy-chain the dc2350 to another dc2350 in isospi mode. this dc2350 is the last (or top) board of a two-board stack. more dc2350 upper boards can be daisy-chained together in the same manner. a. connect a r j45 patch cable from the bottom dc2350 j1 isospi?b rj45 connector to the next upper or top dc2350 j2 isospi?a r j45?connector. b. set the next upper or top dc2350 jp1Cjp3 to 1 for isospi communication. 5. connect the dc2792 auxiliary (or aux) isospi master to the last (or top) dc2350 board of the stack. a. connect a r j45 patch cable from the dc2792 j3 aux rj45 connector to the top dc2350 j1 iso - spi?b rj45 connector. 6. caution! prevent damage to the dc2350. refer to tables?1 and 2 and confirm that the cell-voltage con - nections to screw-terminal block matches the j4 pinout of the dc2350 version being used. a. plug screw-terminal blocks into the j4 cell-voltage connectors. 7. refer to the software setup section of this demo manual to properly setup the pc with the arduino ide software to allow communication to the dc2350?boards. figure 4. dc2792 redundant isospi connections to the bottom and top dc2350 in a two-board dc2350 stack dc2026 usb j1 j5 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 main j2 dc2792 aux j3 j1 2350a f04 dc2350af demo manual dc2350a
8 dc1941 isospi master settings the dc1941 jumpers must first be properly set to inter - face between dc2026 and dc2350. refer to demo manual dc1941 d for jumper setting details. figure 5. dc1941 isospi master mode jumper settings en slp_en vth2 vth1 vth2 vth1 master slave dc590 ext vcc ext 1 0 1 0 vcc vccs pha pol j2 j1 vccs gnd gndvcc dc1941 jp3 jp10 jp9 jp2 jp6 jp7 jp8 jp4 jp5 slow 1 0 2350a f05 figure 5 shows the proper board settings. 1. jp2 : vcc = dc590. 2. jp3 : enable = en. 3. jp4 : slow = 0. 4. jp5 : mode = master. 5. jp6 : vccs = vcc. 6. jp7 : pha = 1. 7. jp8 : pol = 1. 8. jp9 , jp10: vth = vt h2. dc2350af demo manual dc2350a
9 dc1941 to dc2350 typical isospi connection a typical isospi connection begins with the isospi master connected to the first (or bottom) dc2350. additional dc2350 boards can be daisy-chained onto the isospi bus. communication begins from the first (or bottom) dc2350 then to the next upper dc2350 then finally to the last (or top) dc2350. figure 6 shows the following connections for two boards on a stack interfaced to a pc: 1. connect a usb cable from the pc usb port to the dc2026 j5 connector. 2. connect the dc2026 to the dc1941 isospi demo board. a. connect a 14- pin ribbon cable from the dc2026 j1 header to the dc1941 j2 header. 3. refer to the dc1941 isospi master settings section of this demo manual to properly setup the dc1941. 4. connect the dc1941 to the dc2350 in isospi mode. this dc2350 is the first (or bottom) board of the stack. a. connect a r j45 patch cable from the dc1941 j1 r j45 connector to the bottom dc2350 j2 iso- spi?a rj45 connector. b. set the bottom dc2350 jp1Cjp3 to 1 for isospi communication. c. jp4 can be 0 or 1 depending if the discharge timer function is being used. 5. connect or daisy-chain the dc2350 to another dc2350 in isospi mode. this dc2350 is the last (or top) board of a two-board stack. more dc2350 upper boards can be daisy-chained together in the same manner. a. connect a r j45 patch cable from the bot - tom dc2350 j1 isospi?b rj45 connector to the next upper or top dc2350 j2 isospi?a rj45 connector. b. set the next upper or top dc2350 jp1Cjp3 to 1 for isospi communication. 6. caution! prevent damage to the dc2350. refer to tables?1 and 2 and confirm that the cell-voltage con - nections to screw-terminal block matches the j4 pinout of the dc2350 version being used. a. plug the screw-terminal blocks into the j4 cell- voltage connectors. 7. refer to the software setup section of this demo manual to properly setup the pc with the arduino ide software to allow communication to the dc2350?boards. figure 6. dc1941 typical isospi connection to the bottom dc2350 in a two-board dc2350 stack 2350a f06 dc2026 usb j1 j5 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 j2 j1 dc1941 dc2350af demo manual dc2350a
10 dc1941 to dc2350 reverse isospi connection a reverse isospi connection begins with the isospi mas - ter connected to the last (or top) dc2350. additional dc2350 boards can be daisy-chained onto the isospi bus. communication begins from the last (or top) dc2350 then to the next lower dc2350 then finally to the first (or bottom) dc2350. figure 7 shows the following connections for two boards on a stack interfaced to a pc: 1. connect a usb cable from the pc usb port to the dc2026 j5 connector. 2. connect the dc2026 to the dc1941 isospi demo board. a. connect a 14- pin ribbon cable from the dc2026 j1 header to the dc1941 j2 header. 3. refer to the dc1941 isospi master settings section of this demo manual to properly setup the dc1941. 4. connect the dc1941 to the dc2350 in isospi mode. this dc2350 is the last (or top) board of a two-board stack. a. connect a r j45 patch cable from the dc1941 j1 rj45 connector to the top dc2350 j1 isospi?b rj45 connector. b. set the top dc2350 jp1C jp3 to 1 for isospi communication. c. jp4 can be 0 or 1 depending if the discharge timer function is being used. 5. connect or daisy-chain the dc2350 to another dc2350 in isospi mode. this dc2350 is the first (or bottom) board of a two-board stack. more dc2350 lower boards can be daisy-chained together in the same manner. a. connect a r j45 patch cable from the top dc2350 j2 isospi?a rj45 connector to the next lower or bottom dc2350 j1 isospi?b rj45 connector. b. set the next lower or bottom dc2350 jp1Cjp3 to 1 for isospi communication. 6. caution! prevent damage to the dc2350. refer to tables?1 and 2 and confirm that the cell-voltage con - nections to screw-terminal block matches the j4 pinout of the dc2350 version being used. a. plug the screw-terminal blocks into the j4 cell- voltage connectors. 7. refer to the software setup section of this demo manual to properly setup the pc with the arduino ide software to allow communication to the dc2350?boards. figure 7. dc1941 reverse isospi connection to the top dc2350 in a two-board dc2350 stack dc2026 usb j1 j5 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 dc2350 isomd 0 1 swten 0 1 j3 jp4 jp3 jp2 jp1 isospi a j2 isospi b j1 j4 2350a f07 j2 j1 dc1941 dc2350af demo manual dc2350a
11 software setup the dc2350 can be controlled by the dc2026 linduino?one board. the dc2026 is part of the arduino compatible linduino platform that provides example code that will demonstrate how to control the multicell battery stack monitor ics. compared to most arduino compatible microcontroller boards, the dc2026 offers conveniences such as an isolated usb connection to the pc, built-in spi miso line pull-up to properly interface with the bat - tery stack monitor ic open drain sdo, and an easy rib - bon cable connection for spi communication through the dc2350 14-pin quikeval j3 connector. arduino ide setup 1. download then install the arduino ide onto the pc. detailed instructions can be found at www.linear.com/ solutions/linduino under the quick start tab. 2. set the arduino ide to open bms sketchbooks. from within the arduino ide, click on file menu select preferences . then under sketchbook location : select browse, and locate the path to the extracted bmssketchbookbeta.zip file that was provided by adi. dc2350af demo manual dc2350a
12 software setup 3. close then re-open the arduino ide to enable the use of the sketchbook location that was previously set. 4. select the correct com port to allow communication to dc2026 through usb. under the tools menu, select port? ? select the highest number comxx with the checkmark symbol. there may be more than one option; dc2026 is usually the highest com port number. the pc screenshots used in this example show the dc2026 connected to com6. dc2350af demo manual dc2350a
13 software setup 5. select the correct arduino compatible microcontroller board. under the tools menu, select board ? arduino/ genuino uno with the l black dot symbol. dc2350af demo manual dc2350a
14 software setup 6. open one of the programs or sketches associated with the dc2350. in this example, LTC6813-1 sketch will be opened instead of a ltc6812-1 sketch. under the file menu, select sketchbook ? part number ? 6813 ? dc2350_6813. dc2350af demo manual dc2350a
15 software setup 7. upload the dc2350_6813 sketch onto the dc2026 by clicking on the upload button on the top left corner. when this process is completed there will be a done uploading message on the bottom left corner. dc2350af demo manual dc2350a
16 software setup 8. open the arduino serial monitor tool. click on the serial monitor button on the top right corner then the serial monitor window will open and show on the top left corner the comxx used. 9. configure the serial monitor to allow communication to the dc2026 through usb. on the bottom of the serial monitor window, set the following, starting from bottom left to bottom right: a. cli ck on the autoscroll checkbox for the check - mark symbol. b. select both nl & cr on the left dropdown menu. c. select 115200 baud on the right dropdown menu. d. as shown below , when configured correctly the dc2350_6813 sketch menu will appear. dc2350af demo manual dc2350a
17 appendix a the sketchbook contents the bmssketchbook will generally contain the follow - ing folders: libraries, part number, documentation, and utilities. libraries directory: contains a subdirectory for each ic in the sketchbook. each subdirectory contains a .cpp and .h file. these files contain all of the constant definitions and low-level ic command implementations. porting to a different microcontroller requires changes to some library files. part number directory: contains example control pro - grams for each ic. inside the part number folder, each bms ic has a sketch(.ino) file that implements a control program to evaluate the functionality of the ic. this sketch allows the user to control the ic through a serial terminal and make all primary measurements. this sketch also allows for evaluation of self-test and discharge features of the ic. generally, the name of a sketch relates to the ics demo board. for example, the sketch for ltc6804 is dc1942 .ino, for ltc6811 it is dc2259 .ino, and for ltc6813 it is dc2350_6813.ino. utilities directory: contains support programs, including a program that emulates a standard linear technology dc590 isolated usb to serial controller. documentation directory: contains html documentation for the provided code base. documentation for all of the bms ics can be accessed by opening the linduino.html file, as found in the main sketchbook directory (shown below) and in the documentation directory. dc2350af demo manual dc2350a
18 appendix a the sketchbook contents what is a sketch a sketch is simply another word for a microcontroller/ linduino program. the term is generally only used when referring to arduino based programs, as sketches have several abstractions that remove some of the complex - ity of a standard microcontroller(mcu) program. all sketches contains two primary functions, the setup() and the loop() function. these are in fact the only functions that are mandatory in a sketch and are almost always implemented in some form in a typical mcu program. the setup() function is run once at power on or after the mcu is reset. the setup() function generally is used to initial - ize the mcu peripheral circuits and to initialize all of the control variables. the loop() function is similar to a main() function that has implemented an infinite loop inside a standard c program. the code within the loop() function is typically where the primary program code is placed. the code within the loop() function will repeat?infinitely. sketch modifications sketches can be modified to a set of applications spe - cific requirements. all sketches are written such that the most common modifications can be made by changing the variables listed in the /*setup variables */ table at the top of the sketch. for reference, example modifications to a dc2259 (ltc6811 ) sketch are shown below. these modifications are applicable to most of the available bms ics in the sketchbook. common modifications can be made by changing the setup variables. the most common application changes are listed below. after the variables are changed, the sketch will need to be recompiled and uploaded to the linduino. 1. t o change the number of ics in the isospi network, change the total_ic variable. a number between 1 and 4 should be entered. in an application that has 2 devices in the network the modified line will look like: const uin t8_t total_ic = 2; 2. often an application may need to sample data at a rate faster than the default 500ms (2hz ). to modify the loop/ sample rate the measurement_loop_time variable should be changed. the loop time must be entered in milliseconds and should be a number larger than 20ms. to change the loop rate to roughly 10 measurements a second the loop rate should be changed to 100ms. the modified line will look like: const uin t16_t measurement_loop_time = 100; 3. it is possible to modify which measurements fall within the loop during the loop measurements command. the following list are the measurements that can be looped: const uin t8_t measure_cell = enabled; // this is enabled or disabled const uin t8_t measure_aux = disabled; // this is enabled or disabled const uin t8_t measure_stat = disabled; //this is enabled or disabled by default only a cell measurement is done, as noted by measure_cell = enabled. what measurements are made can be changed by setting what the measure field is equal to. to measure cells and the status register but not the aux register, the variables would be setup as shown below: const uin t8_t measure_cell = enabled; // this is enabled or disabled const uin t8_t measure_aux = disabled; // this is enabled or disabled const uin t8_t measure_stat = enabled; //this is enabled or disabled dc2350af demo manual dc2350a
19 information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. appendix a the sketchbook contents 4. adc conversion settings can also be modified in the setup v ariables section. the default setup is to run the adc in normal mode, which has a 7khz filter code; in this mode the adc_opt bit is disabled. typical choice for which cell to convert is all. full adc conversion programming requires setting adc_opt, adc_conversion_mode, cell_ch_to_convert , aux_ch_to_convert and stat_ch_to_convert. these variables are programmed with constants listed in the ltc68xy_daisy.h file. for simplicity they are also listed below: md_422hz_1khz md_27khz_14khz md_7khz_3khz md_26hz_2khz adc_opt_enabled adc_opt_disabled cell_ch_all cell_ch_1and7 cell_ch_2and8 cell_ch_3and9 cell_ch_4and10 cell_ch_5and11 cell_ch_6and12 t o set the adc to have a 1khz filter corner the adc_opt and adc_conversion_mode variables would be changed to: adc_opt = adc_opt_enabled; adc_conversion_mode = md_422hz_1khz; t o convert only cells 2 and 8, cell_ch_to_convert = cell_ch_2and8; 5. in another example, the user may wish to change the undervoltage and overvoltage thresholds. each number is based on an lsb of 100v. //under v oltage and over voltage thresholds const uin t16_t ov_threshold = 41000; // over voltage threshold adc code. lsb = 0.0001 const uin t16_t uv_threshold = 30000; // under voltage threshold adc code.?lsb?= ?0.0001 dc2350af demo manual dc2350a
20 lt 0118 ? printed in usa ? ? analog devices, inc. 2018 esd caution esd (electrostatic discharge) sensitive device. charged devices and circuit boards can discharge without detection. although this product features patented or proprietary protection cir cuitry, damage may occur on devices subjected to high energy esd. therefore, proper esd precautions should be taken to avoid performance degradation or loss of functionality. legal terms and conditions by using the evaluation board discussed herein (together with any tools, components documentation or support materials, the evaluation board), you are agreeing to be bound by the terms and conditions set forth below ( agreement ) unless you have purchased the evaluation board, in which case the analog devices standard terms and conditions of sale shall govern. do not use the evaluation board until you have read and agreed to the agreement. your use of the evaluation board shall signify your acceptance of the agreement. this agreement is made by and between you ( customer) and analog devices, inc. (adi ), with its principal place of business at one technology way, norwood, ma 02062, usa. subject to the terms and conditions of the agreement, adi hereby grants to customer a free, limited, personal, temporary, non-exclusive, non-sublicensable, non-transferable license to use the evaluation board for evaluation purposes only. customer understands and agrees that the evaluation board is provided for the sole and exclusive purpose referenced above, and agrees not to use the evaluation board for any other purpose. furthermore, the license granted is expressly made subject to the following additional limitations: customer shall not (i) rent, lease, display, sell, transfer, assign, sublicense, or distribute the evaluation board; and (ii) permit any third party to access the evaluation board. as used herein, the term third party includes any entity other than adi, customer, their employees, affiliates and in-house consultants. the evaluation board is not sold to customer; all rights not expressly granted herein, including ownership of the evaluation board, are reserved by adi. confidentiality. this agreement and the evaluation board shall all be considered the confidential and proprietary information of adi. customer may not disclose or transfer any portion of the evaluation board to any other party for any reason. upon discontinuation of use of the evaluation board or termination of this agreement, customer agrees to promptly return the evaluation board to adi. additional restrictions. customer may not disassemble, decompile or reverse engineer chips on the evaluation board. customer shall inform adi of any occurred damages or any modifications or alterations it makes to the evaluation board, including but not limited to soldering or any other activity that affects the material content of the evaluation board. modifications to the evaluation b oard must comply with applicable law, including but not limited to the rohs directive. termination. adi may terminate this agreement at any time upon giving written notice to customer. customer agrees to return to adi the evaluation board at that time. limitation of liability. the evaluation board provided hereunder is provided as is and adi makes no warranties or representations of any kind with respect to it. adi specifically disclaims any representations, endorsements, guarantees, or warranties, express or implied, related to the evaluation board including, but not limited to, the implied warranty of merchantability, title, fitness for a particular purpose or noninfringement of intellectual property rights. in no event will adi and its licensors be liable for any incidental, special, indirect, or consequential damages resulting from customer s possession or use of the evaluation board, including but not limited to lost profits, delay costs, labor costs or loss of goodwill. adi s total liability from any and all causes shall be limited to the amount of one hundred us dollars ($100.00). export. customer agrees that it will not directly or indirectly export the evaluation board to another country, and that it will comply with all applicable united states federal laws and regulations relating to exports. governing law. this agreement shall be governed by and construed in accordance with the substantive laws of the commonwealth of massachusetts (excluding conflict of law rules). any legal action regarding this agreement will be heard in the state or federal courts havin g jurisdiction in suffolk county, massachusetts, and customer hereby submits to the personal jurisdiction and venue of such courts. the united nations convention on contracts for the international sale of goods shall not apply to this agreement and is expressly disclaimed. dc2350af demo manual dc2350a


▲Up To Search▲   

 
Price & Availability of LTC6813-1

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X